package com.sxj.corejava.code08_常用类.String;

/**
 * @author 石小俊
 */
public class Test05_join {

    public static void main(String[] args) {
        String[] arr = {"1", "3", "5", "7", "9"};
        String s = String.join("-", arr);
        System.out.println(s);

        String s2 = String.join("-", "Hello", "World", "I", "am", "admin");
        System.out.println(s2);
    }

}
